package Homework;

public class Test {
    public static void main(String[] args) {
        DoubleLinked linkedList=new DoubleLinked();
        linkedList.addFirst(5);
        linkedList.addLast(4);
        linkedList.addLast(3);
        linkedList.addIndex(3,2);
        linkedList.addLast(1);
        System.out.println(linkedList);
        linkedList.set(2,10);
        System.out.println(linkedList.set(2,10));
        System.out.println(linkedList);
    }
}
